#!/bin/bash
sleep 1s
gnome-terminal -x bash -c "source $HOME/livox_ws/devel/setup.bash;roslaunch livox_ros_driver2 msg_MID360.launch; exec bash"
sleep 1s
gnome-terminal -x bash -c   "echo nvidia | sudo -S uhubctl -a cycle -d 3 -p 1-4;exec bash" 
sleep 3s
gnome-terminal -x bash -c "source $HOME/gucang_ws/devel/setup.bash; roslaunch fast_lio mapping_mid360.launch; exec bash"
sleep 15s  
gnome-terminal -x bash -c "roslaunch mavros px4.launch fcu_url:=/dev/ttyACM0:57600 tgt_system:=2 gcs_url:=udp-b://@:12302;exec bash" 
sleep 3s
gnome-terminal -x bash -c "source $HOME/gucang_ws/devel/setup.bash; roslaunch px4_realsense_bridge bridge.launch; exec bash"
sleep 3s
gnome-terminal -x bash -c "source $HOME/gucang_ws/devel/setup.bash; roslaunch lidar_detect main.launch; exec bash"
wait
exit 0

